package net.wzw;


import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * Hello world!
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@MapperScan("net.wzw.mapper")
@Slf4j
public class AlertApplication {
    public static void main(String[] args) {

//        Facts facts = new Facts();
//        facts.put("humidity", 90);
//        facts.put("temp", "毛衣");
//
//        Rules rules = new Rules();
//        rules.register(new RainRule(), new TempRule());
//        RulesEngine rulesEngine = new DefaultRulesEngine();
//        rulesEngine.fire(rules, facts);

        //换种写法 通过读yml配置文件

        SpringApplication.run(AlertApplication.class, args);
        log.info("hello AlertApplication!");
    }
}
